﻿using Entiy;
using IBLL;
using IDAL;
using System;
using System.Collections.Generic;
using System.Text;

namespace IOCDemoBLL
{
 public class User_BLl: IUser_BLL
    {
        IUser_DAL _userDAL;
        public User_BLl(IUser_DAL userDAL)
        {
             _userDAL = userDAL;
        }

        public User Getuser(int id)
        {
            return _userDAL.Getuser(id);
        }

        public void SaveUser(User user)
        {
             _userDAL.SaveUser(user);
        }

        public void UpdateUser(User user)
        {
            _userDAL.UpdateUser(user);
        }
    }
}
